changing layout on viewpager swipe depending on item type