Properly sets index and level of timeline children