automatically resize the lightbox when the size of the window changes
removed old code from lightbox.js