changes function goToSlide