You could transfer the substrate, decor and filter media over with the fish. Just fill up the 40g and treat it first (leaving room for the decor). The water only has miniscule amounts of good bacteria at most and I like acclimating the fish to a tank of clean water.
When you want to use the 29g, you could run it's filter in the 40g for a week as well as hang some substrate in pantyhose socks in the 40g. Then transfer that filter and substrate over to the 29g.
I would recommend at least 2 more platys of the same type and at least 1 more emerald cory cat so they can each have 3 (or more), which will make them happier fish. Also 1 more black skirt tetra. If you're staying with all smaller fish, you can stock up to 40" (adult size) of fish in the 40g.