Auto-resize the profile preview