Shaping end portions of hollow articles