My first go-around with a diy background I made, I had the same problem. I am planning on installing a 3-piece diy background I bought on ebay on one of my tanks soon, and will be silicon-sealing them in place.
I have a 25g where I did it right with the silicon sealing, and no issues.