Producing hair combs or similar toothed or slotted articles