it took a moment for both of them to stabilize themselves as the waves ripped past them , but they were able to get collected , and within a minute or two were safely laying on the wet sand , on top of what had just moments ago been the sand dunes .