set thumbnail max size.