Have you noticed that in appliances that take two batteries and they go dead, but when you remove them and put them back in each others' slots, the appliance works again?

I am not sure if any of you have noticed this, but I have seen this a few times with my tv remote. When the battery goes dead, I take out both of them and switch them to different slots than before, and they work for a while. Why does that happen, though?

I can think of two reasons why this happens:
1 - When you move the batteries in their slots, they get heated a little (very little). That little amount of heat facilitates the chemical reactions going on inside the batteries.
2 - Removing the batteries from their slots helps remove the oxidation that gets accumulated at the contacts.
Of course, both these methods only work temporarily, and you eventually have to buy a new set of batteries.