Slug generation and suppression in pipelines