refactored Slideshows controller and added specs