Once they hatch and start to wander you should put them in your 5 gallon. They should be fine in there. Being in such a large tank, it may be hard for them to find food. Especially if there are larger fish in the tank. It'll be easier to monitor them in a 5 gallon.