SmartGallery implementation