Observing GRB host galaxies with the integral field unit of X-shooter