Push in and hold the button on the bottom of the frame.
Either tap the barrels or the butt on something soft and they should separate. Keep one hand on each piece.
I recommend tapping the barrels, rather than the stock, because of the way the stock is attached.
If they haven't been off in a while, they may be stuck pretty tight.