Correctly setting the size of lightboxes