added a method to switch to a different slider position on the slider bar when slideshow changes