Slovakia and Poland navigate new political waters