VID-1308 fixing gallery styles