styling the list of distances