fb: trim memory size