You can put them in a 2.5g, but the gourami won't do too good. Dwarf gouramis get sick a lot, IME, and putting them in a very small container will most likely increase the chances of these illnesses. (In a tank that small, ammonia buildup will occur quicker, and the tank will be hard to keep clean without changing water every day)