I know, we just replaced our carpet with bamboo click flooring. I think the carpet/tile/vinyl is installed before anything else. then the walls, cabinets, appliances, and slides.
I don't know what type of slides you have but on ours I could put them about 7/8's out and get to the edge of the installed carpet at the point the slide drops level to the floor. I could cut, pull, pry, and swear but got it all out.
The problem with replacing the carpet is you can't get to the edge to staple the new carpet in. I used a glue down installation for the bamboo so I just spread the glue to the edge and set the wood cut to 45 degrees on the edge for clearance on the slide. Possibly you could apply glue to the last 2-3 inches and the glue would hold it in place without staples.
Good Luck