While moving the J-hook out of the line of fire, the hook was between the upper and lower rails. Employee was trying to relocate the hook. The hook caught a hydraulic line while it was moving in the down position. Causing fingers to get smashed between the railing and the j-hook.