Directional excitation of SPP in metallic nanoslits and its functional application