update switcher width