A customer truck was overloaded and driver had to dump off some of the load. The truck driver was holding his tailgate partially open and did not see loader operator come over and grab on to the other end to help. The truck driver went to slam the tailgate shut and employee's left hand was smashed in the latching mechanism of the trailer.