Controlling the nano-deformation of polymer by a reversible photo-cross-linking reaction