fix splitter on window resize