try to fix bug in slider