This line is from Othello (Act 5, Scene 2), not Hamlet. It's spoken by Cassio describing Desdemona's body after she is smothered by Othello:
"She was, my lord, a creature of great beauty;
Her clothes spread wide,
And mermaid-like while they bore her up,
Did stretch her out, and as a pillow did
Unlace her bosom in the flowing tide."
Highlights the contrast between Desdemona's beauty/purity and the brutality of her murder. Cassio's poetic description intensifies the horror and Othello's tragedy.