Evolution of the clustering of photometrically selected SDSS galaxies