Fold the pillow over and stick your cock in the middle bit from the side (it’s softer than straight on the mattress).
Basically like a hot dog in a massive slice of bread.
Just, cumming on a pillow is not a mess you want to clean up, so stick a towel as the filling in the sandwich, put on a condom, or even better don’t cum.
