to complish the custom view of ViewPager to use it autoplay imageview