Recently, size switchable materials have attracted much attention, as size is the fundamental and crucial factor that determined the properties of materials, for example as the noble metal nanoparticles1, polymeric microparticles2 or colloidal superparticles3. The stimuli-responsive molecules might be very useful to build up the size switchable systems45. Azobenzene is one of the most attractive stimuli-responsive molecules67, because of its reversible isomerization between trans and cis conformation upon external stimuli, such as mechanical stress8, electrostatic stimulation910, as well as light irradiation111213. So the supramolecular assemblies involved azobenzene have various applications in intelligent membranes1415, optical memories161718 and biological systems192021 and so on. A large number of photo-responsive systems based on the azobenzene and macrocycles have been reported2223242526, such as, a photo regulable ion-extraction and ion-transport based on azobenzene-crown ethers27, a photo-responsive artificial muscle based on host-guest complex of α-cyclodextrin and azobenzene2829, and a dual stimuli-responsive self-assembly supramolecular nanoparticles based on the ternary host-guest complexation between cucurbituril, a methyl viologen polymer, and mono- and multivalent azobenzene functionalized molecules30.