Pets, in general, aren't comfortable walking on strange surfaces that make noises. Try placing a piece of foil (or bubble wrap) on the area in question and leave it for two or three days. Remove the foil, but don't discard it just yet! You might need it again. See if your kitty or dog goes back to that spot. This might take a few days or even a week. If the behavior has stopped, you're done! If your pet realizes his favorite sleeping spot if available again, replace the foil and leave it there for a week. Repeat the process until they get the idea.