Shaping hollow articles with different cross-section in longitudinal direction, e.g. nozzles, spark-plugs