make page num total if >total_pages