setting page indices for the start and the end page