fix the gallery nav bar