auto width to modal