It may have been the clutch dragging - if it does it again push the gear lever towards first gear, then holding it there turn the engine off. If it slides into gear when the engine stops then it's likely to be the clutch.
Hoefully just a glitch that's sorted itself out.
Hoefully just a glitch that's sorted itself out.