Put list elements in one line