Injured and coworker were replacing a pump. there was not enough clearance for the pump to slide over the pump well hand rail. The new pump became caught on the hand rail. Injured lifted up the pump. The pump slid across the hand rail catching injured' s left thumb between the pump base and hand rail resulting in a severe laceration. Hospital personnel amputated the thumb.