This is my solution to dealing with loose ziploc-type bags in a drawer. We generally re-use these until they're too fatigued, and this solves the problem of having them puff up and get trapped behind the cabinet front above the drawer. There are two very small rare-earth magnets in the lid on each side, just strong enough to keep the top closed and keep the baggies under control.
Click on the image to view it in a zoomable-to-fullsize mode.