Can I make an interior partition wall thinner to accommodate appliances?
Pantries built with studs and drywall often waste a ton of space, and this looks to be no different. You might be better off restructuring this area to remove the doorway and pantry wall. I would reclaim the pantry space through installation of efficient cabinets that maximize the space (I redid my first kitchen like that and gained more storage with cabinets).