Controlling the coupling between localized and delocalized surface plasmon modes in a metallic photonic crystal slab