Adding horizontal and vertical grid lines