adding lightbox and scrolling function