add auto resize fit