Reorganise CSS/JS, add swipe events