VID-1976 front end rendering and toggling of galleries