Spectra of the sky through all slits