grants e-boat was rising on the swell , cresting a wave , she was directly ahead of the enemy , for a moment she seemed to hover there , perfectly balanced on the top of the wave , then , like a leviathan , she sank from sight into the cavernous trough .