Less main file refactoring. Slideshow tweaks