Carousel: fix check if we're in a gallery