update positions when dragging tasks