improves responsive gallery