refactored jquery slider and lightbox, moved to flexbox