fix sidebar position when resizing