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

Can ı just shape it by heating it?