fix galleries for pages