There are several ways in which to do this, depending on how large the tank and rock work are. Making a frame work of PVC and attaching the rocks to it with zip ties and mortar is a common one. Otherwise the use of acrylic rods is great for "hidden" supports. You could also use ceramics and magnets to attach it to the back of the tank, but weight is generally a consideration when going that route.