getHorizontalLines i getVerticalLines