fixed the gallery with text