use non deprected method in MvcGallery