Two cages would probably be your best bet. Chameleons need a visual barrier and do not like to see each other all the time. By dividing the cage you will just be cutting their space in half, which they will probably need or like for themselves. Either way, you would need to find a way to hide them from each other.