update sidebar chars length