Add grid directive