Another quick and cheap option is to use a 4 inch piece of packing tape. Stick an inch to the bottom side of the glass, an inch out, fold it back on top of itself, and an inch on the top of the glass. I am using this on a 20l that sits on the bottom shelf of a rack. Works perfect due to the fact that if the handle was on top of the glass, I would not be able to fully open the lid because my hand would get between the glass and the shelf above.
I don't put a hinge on my tops at all. The hinge makes it more difficult in tight situations. Without a hinge you can just slide the front glass back over the back glass when you need to get into the tank.