imporving slider boundary casess