base class containig logic

moved from slideshow.py