Added gallerySize for DefaultGallery