Dynamics of gravitational clustering I. Building perturbative expansions