Yeah if the frogs were sharing a tank before you got them there's no reason to put them in separate places unless the tank's too small. Honestly I can't picture a ten gallon tank in my mind. It might be a little small?
If they aren't going to be there long it might not be bad.