Your refrigerator needs a few ... draw rails mounted above and below the cabinet in addition to a couple of wheels? This would help keep the pantry from scraping against the fridge or the wall.
Instead, I opt for a collection of food-storage containers that’s practical for my own way of cooking: many that nest tightly together in my small cabinet ... made my pantry and refrigerator ...