fixed that one annouying bug of slider