they began swimming out from the shore , but hearing a speedboat coming their way , they both turned and swam back to shallower water , where they swam a hundred yards parallel to the shore and then returned to the dock .