Sealing devices placed between articles and treatment installations during moulding or shaping