Fireproof and smokeproof seals in profile frames