improve swipe gallery