update mem layout and add background2 buffer