Resize modal when shown