index > 0 check is there so that you don't go to a child with the index of -1. If your index is 0, then the code below would result in a child index of -1, which is obviously invalid.
You need to order it like I suggested, with pages. Otherwise the movement will take you to the next child, not the next page.