set max-width of slider