update sidebar size