create directive "gird"