Fix margins around modal in resize plugin