added lightbox function for WP gallery