for a moment thomas started to slide backwards toward the distant ground , but he managed to pulls his arm up over the sill , and grab the inside of the window ledge to pull himself into the hall of the outer castle wall .