Method and device for producing preforms with special geometries