enhance segment hover accuracy and split functions