Hi Hugo,
That X-Axis is the Object’s (Local) X-Axis, so you could also, for instance, use the Options > Transforms > Affect Only > Origins and Rotate the Objects Origin so, that its X-Axis is pointing in the direction you want to Slide it in:
Hard to visualize this in one picture…hope it is still clear.