limit max size of sidebar