UI-2825: Not show all spaces and scrollbar with more than 10 spaces