Hi
Take off the glass thickness, airspace at the top and allowing for some substrate, that tank is close to 20G US, and 17G Imperial. IMPO, Rams or the rainbows, not both. If you are desperate to overcrowd the tank you will need a decent filter and overfilter the tank maybe a 2213/5 Eheim