there should be a cached $mainGallery or something you can piggy back off of