Put maxSize for sidebar and provide a check for % in resize.js