fix uipageview scroll bug when only two pages