Tacking
Use a contrasting thread so you can see it to unpick. Stitches can be long on a straight seam and shorter on a curve. Do not tack through a place the machine needle must hit if the tacking thread is thick. Sew the machine seam just beside the tacking, or on it if the thread is fine, then pull the tacking out. If you leave it in, it shows at the hem and it can pull in the wash.
A glue stick sold for sewing is a different temporary hold. Read that tube. Tacking is the thread method.
On a slippery cloth, tacking beats a handful of pins.