Help with sliding mate

Hi. I am trying to create a hydraulic type arm. I have a shaft that I only want to travel a certain distance while able to rotate. Is there a mate that keep these parts constrained?

SolidworksAssemblies