I wouldn't keep them together no matter how big the tank is. In the wild, pacman's main diet is other frogs..

However, does your frog honestly move? I would go so far as to say a ten gallon offers much more space than needed.

Mine has a roomy tank, but he never moves from his burrow.