Slide and Thumbnail Classes

Rewrote the slideshow and thumbnail functions to wrap them as class
objects.