set navigation pointer position according to the current slide