use non deprected method in MvcGallery
format MvcGallery