parseint index for onPageChange