The sea fell on the ship and she heeled and he thought they'd floundered but she shook herself like a wet terrier and swung out of the trough.
but all this she and he stuff is very confusing, why not say which heeled, AND HE THOUGHT THEY HAD FLOUNDERED but the Ship shook herself.