One disadvantage of placing the rock on the glass is that you have reduced the surface area of the sand, and thus the amount of filtration, in your tank. Another is that you will still get
detritus built up behind the rock and where the sand and rock meet.