moved logic from slideshow to slideshowbase class

modified call to main() function