fixing slider for galleries