update the position of elements for print