improves gallery view on small devices