Subsequently , the Slovaks became part of the Hungarian Kingdom , where they remained for the next 1,000 years .