The lateral force of the soil on the side wall or retaining wall must be resisted by contributions from the slab on grade, sliding of the footing and possibly passive pressure of the soil against the footing. I generally do NOT include passive pressure since the amount of movement required to mobilize the passive pressure would probably result in failure of one of the other force components ... so it's not compatible with resistance from the slab on grade or sliding of the footing.
Subtract the sliding resistance of the footing from the total lateral force and the remaining must go into the slab on grade.
The slab on grade is resisted in buckling by the soil it rests upon and by gravity. If we consider that 2% lateral force is required to resist buckling - and we assume that your slab is flat so there isn't any initial out-of-straightness, then the slab on grade can resist at least its own weight divided by .02 ... assuming continuous lateral support by gravity.
In fact, the slab on grade can resist considerably more. If you figure the slab on grade can span between lateral support points at least some distance without buckling ... let's just GUESS it's 5 feet (because I'm too lazy to figure it out at this moment ... hey, it's Christmas holidays!) ... then you need a lateral restraint force of at least 2% of the axial load at no more than 10 ft centres. Since the mass of the slab on grade is available to employ, you've got 10 ft of slab on grade to provide the force ... so 5 ft of 4" sog is 250 pounds. Thus 250/.02 is 12,500 lb. Well, that should do.
Now, I personally think that 2% is inadequate since it envisages a perfect world, which doesn't exist in the reality of our design world ... so I use 5% ... so the slab on grade (if 5 ft were correct) has about 5000 lb. of resistance capacity.
Does this make sense?
Of course, if the slab on grade slides away when a 5000 lb force is applied ... it wont be much good to you!
Cheers!