A woman sailing looks like she is having a hard time.
A woman is having a hard time sailing.
One can be sailing and having a hard time with some different task other than sailing, while "having a hard time sailing" means having difficulty with the act of sailing itself.
(-x)
(-x)