history of slovakia and hungary