changing around the way the gallery works