During sublimation process, the solid material is directly converted into gas. The gases are condensed and crystals of the salts are collected. So cotton plug is inserted at the mouth of the funnel so that the gases do not get escaped.
NH4Cl(s) + NaCl(s) --------> NH4Cl(g) + NaCl(s)