Mode analysis for periodically modulated metal slits