There was also Polish settlement in Slovakia from the 15th century.

An excerpt from the article 37 facts about Slovakia

Today, 4602 Poles live there. The areas where Poles lived became the subject of disputes between Poland and Slovakia in 1938. This was also the reason why Slovakia, as a puppet state of the Third Reich, attacked Poland in 1939, occupying, among others, Zakopane, where the official Slovak victory parade took place - it can be said that Slovakia was the third occupier during World War II.