create box from multiple horizontal and vertical lines