with a small tank, water quality really is the issue. I have mine in a 30 gallon, but I make sure the water quality is top notch.
It's easier (for the most part) to keep water quality up in a larger tank, and the params don't typically switch too much.
Lighting is important as well, for sure.