VID-1854 lazy loading, hiding and showing images in galleries