In 1918 , the Croats , Serbs , and Slovenes formed a kingdom known after 1929 as Yugoslavia .