Dynamics of inhomogeneous cross-linked polymers consisting of domains of different sizes