Buy smaller amounts and go to the store more often. If you are buying more than you can eat in the time it goes bad try going with less.
Also if things are getting slimy you can do what I do- I wrap my produce in paper towels, helps keep it from going bad quickly