Code refatoring - InfiniteVIewPager