I'm just in the process of switching tanks from my small one to a 65 gallon tank. The big one is on the ground and set up there until I get a stand on Thursday. There's only about 4-5 inched between the tank and the wall. My cat has taken a liking to my beardie and vice versa.
At one point my beardie was leading the cat around the outside of the tank in circles. Then the part that made me laugh was when beardie led the cat to the back of the tank and ran to the other side, then turned around and went back again. The cat followed but there was no space to turn around so it ran backwards to the other side. My beardie went back and forth along the back about 10 times before the cat gave up and layed down. Poor cat was so squised behind the back of the tank you could see its faced pressed against the side.

