Change the logic for zoomed out non-gallery