It may be best to remove the lids so everything is easy to access. Cut the carton in half or use different sizes to utilize every bit of space in your junk drawer.
Allocate one cubby for your spare keys, another for loose batteries, and so on. The goal here is to give each item its designated home so nothing slides around or gets mixed up.