I personally have some of my rock leaning on the back. I used to have a couple pieces touching the side but over time, it looks horrible as you can't get in close enough to clean. I recommend at lease 2-3" of open space on the sides, but leaning against the back is fine. If you're worried...