he flipped over the tower wall , but managed to grab onto its edge with both hands during the backwards somersault and hang on as he righted himself , to dangle precariously from the top of the turret , his belly pressed against its wet marble side .