In this paper, we employ an antireflective coating which comprises of inverted pi shaped metallic grooves to manipulate the behaviour of a TM-polarized plane wave transmitted through a periodic nanoslit array. At normal incidence, such scheme can not only retain the optical curtain effect in the output region, but also generate the extraordinary transmission of light through the nanoslits with the total transmission efficiency as high as 90%. Besides, we show that the spatially invariant field distribution in the output region as well as the field distribution of resonant modes around the inverted pi shaped grooves can be reproduced immaculately when the system is excited by an array of point sources beneath the inverted pi shaped grooves. In further, we investigate the influence of center-groove and side-corners of the inverted pi shaped grooves on suppressing the reflection of light, respectively. Based on our work, it shows promising potential in applications of enhancing the extraction efficiency as well as controlling the beaming pattern of light emitting diodes.