Take a peg board and cut it to fit on the bottom of your drawer. Get the right dowel rods to fit in the holes. Cut the dowels as high as you need them to keep things in place. Put dowels where needed to make compartments for the different size containers.
I just did this and it works great to keep all the matching sized containers and lids in the same spot.