jamie yanked his foot free and rolled out of the saddle as the horse hit the bridge with a thud that shook the whole structure , struggled for an instant , neighing loudly , and slid over the edge into the ravine .