fixing gallery theme 2