gallery theme fixes