I need a component which move (slide) on a metal rod

Linear rail (aka precision round-rod) and linear bearings is available in many sizes, and there are cheaper versions with lower tolerances, for instance LM6UU works with 6mm rod and cheap versions are around.