she kicked her legs and tried to swing towards the cliff to get a foothold , but instead , her legs glanced off another portion of the branch , and the jolt almost caused her to lose her right hand grip .