replacing jquery.splitter with my own solution