A Mechanic sustained a fracture and laceration to the middle finger on his right hand while installing a hoist cylinder on a Haul Truck. When the cylinder slipped the injured attempted to steady it causing his right middle finger to get caught between the cylinder and fuel tank on the Haul Truck.