Mechanic was installing a bogie roller on a spare portable carbody. Mechanic was attempting to position the roller and had the flange of the roller on top of the track rail. The Bogie roller slipped into place pinching his right pinky finger between the roller and the track rail.