they moved slowly , step by step , the waves crashing against their legs , until finally after some time they reached the safety of the sheltered cave on the opposite side of the gap and gratefully entered into the darkness .