init layout with swipe navigation