fixing swiping viewpager bug