refactor with slider functions and narrow search window
fix hover problem