Edit adaptive size for mobile, add swipe events