You should keep it away from the glass for cleaning and curculation purposes. Some good ways to stack rock is to have one sunken island in the middle of the tank, or have two sunken islands on each side of the tank. A hourse shoe shape is good. Or make some caves and arches.