Finished the "gotoSlide" function.