fix the gallery