Dynamics of a particle confined in a two-dimensional dilating and deforming domain