Fix splitter code to properly work with 1px size borders