VID-1854 more work on gallery prototype