Make max size visibility and hidden classes