viewgroup to imp just like viewpager