Spectral precision improvement with demagnifying spectral images in spectroscopic nanoscopy