"Will there be no pilot slots? I am hoping to apply in 2 years. How will this affect my chances?"
There will always be pilot slots. The question is how many and how competitive will it be to get one?
Currently the USAF is training approximately 1,100 pilots a year. This, from what I understand, is about the maximum the current pilot training infrastructure (aircraft, simulators, instructors, airspace, flight time, etc.) can produce. In recent years the USAF did reduce their pilot training output (and capability) based on a perceived overage of pilots. It did not last long, and soon they cranked up their output. However, when it was reduced, your chances of getting one depended on your commissioning source, with the Academy getting the most consideration, then ROTC, then OTS (and I'm not sure they got any at all).
The USAF (and other services) cannot afford to shut down their pilot training. Not only do they have to replace the pilots who decide to get out, they also have to replace those who stay in, but move on to staff and leadership positions and eventually retire. The USAF cannot go out on the street and hire a squadron commander or staff officer with recent experience; they must grow them from within. This process takes at a minimum 12-15 years. Even a few years of not producing pilots would have impacts for decades throwing the system into turmoil.
I hope this helps. Good luck in your pursuits.