Reaction mechanism of glycerol with hydrogen iodide acid
The iodine isn't changing positions, it's donating a pair of electrons to stabilize the charge by forming an iodonium ion similar to the bromonium ion formed during the halogenation of an alkene shown below. You can see that the bonded pair of electrons was not affected by the step. It looks like they confused the reaction by short-cutting the reaction step.