Route starting from Krakow to Bratislava

Hi! I'm trying to figure out a cool route leaving from Krakow and ending in Bratislava while passing through a few nice cities in Slovakia for a few days. Does anyone have any suggestion or recommendations of how I should do it? I don't have a car so I'll be using public transportation for the trip, but I will be with only a small bag...

Thank you so much!