An advancing glacier is like an ice making machine with the output being dropped on a conveyor belt. The ice travels along until the temperature of the surrounding environment stops it from proceeding any further by causing it to melt. When a glacier recedes, the conveyor belt is not switched to "reverse", it just means that the point at which it melts is moving closer to the ice making machine.