SMS dit: Autoguidance improves IR spectrograph resolution