[major] making the swipeview and fixin the foreach of pieces