improved write.nexus.slits