fix resize of sidebar