It wouldbe better if you hang it about 7" to 12" from the water line
If you let it sit on the top of the tank 2 things might happen
1, to close to the water line light projection not wide enough
2, you could knock it off and burn/electrified everything
just my opinoin