Hello and welcome to fishlore

Yes, as you thought your 30g is indeed over stocked with all those fish. I would do what I can asap. Do a water change asap. Then I would try and find homes for some of those fish, if you have no other tanks available. Im not one that usually recommends folks to give up their fish, but in this case... you need to do something quickly.
Some questions would be.. when was the last water change? How often and how much water do you take out at each water change? Have you had the water tested? Do you have your own water test? Is your tank cycled yet?
It sounds like they are gasping for air due to ammonia poisoning.Once we have more information on your tank we will be able to give you a hand...

~ kate