Spring compression and expansion

In this video assembly file spring is compressed and expaned. I am unable to do it. How to do it?

Time 1.09.20-1.09.31

SolidWorks Tutorial #315 : Shock absorber with movable spring / screw mate - YouTube

SolidworksAssemblies