change the position of a slide