fixing gallery theme3