Automatic horizontal packaging machines