The only concerns with it touching the back and sides are flow and cleaning. It makes it difficult to clean the glass on the sides when rock is touching and eventually algeas and corraline grow there looking a little unkept. The flow is a more serious issue, but avoided by placeing small powerheads in and behind the rockwork. You don't want "dead" spaces in your water.
R-