Okay so I just moved my snake to a larger tank and decided to put the heating mat on the side due to my snake being a corn (burrower) I'd really like it not to crack at all this time now since its on the side and I bought

One of these a while ago, but the thing is it requires you to stick onto the heat source/glass where it is located but how the hell are you supposed to do that while still being able to close the tank? My snake goes through periods of activity where he still tries to open the tank and he most definitely could if its not closed.
Am I missing something obvious? I bought it a while ago and can get another but they all seem to have the same parts. Right now I've just stuck it to the glass above the heating mat on the outside idk how much that can give it readings wise.