update selection's position