If the issue happens again, pumping the pedal a few times slowly might sort out whatever the internal seals are doing... but something is obviously failing so it needs fixing.
Have a look under the battery, to see what kind of condition the slave cylinder is in. Any fluid leak means it's knackered.
Also the slave actuator rod should be clean (ish) and not completely corroded or shonky looking. It should also be "straight" from where it emerges from the slave "body" (black plastic, triangular/angular looking item, bolted to the top of the gearbox). If it's poking out at an angle, the slave is knackered.
If you need a new slave, you will probably also need a new master cylinder too... since they are connected with a quick-detach connector that also contains the clutch damper valve.. but the two halves corrode together and separating them becomes impossible.
You can get round the problem by detaching the hose from the new slave or master and replacing the affected cylinder but using the existing pipe-work.. but if the problem is the master cylinder (£120-200 depending who buys it) then I would personally buy a new slave too (£40) and fix it "properly" (all new parts) since it saves faffing about with it again for a very long time.
Ralf S.