The mean curvature flow along the K\"ahler-Ricci flow