Dynamic deformation visualization in swelling of polymer gels