resize memory file