VLBI-selected sample of compact symmetric object candidates and frequency-dependent position of hotspots