Nazis’ racial policies

How did the Nazis’ racial policies expand to include Poles and Slavs, during WWII? In what ways did Hitler’s plan for Lebensraum connect to his racial views towards these groups?