Fixes slideshow pagination buttons.