made tabs work and make back and next buttons on slideshow functional