changing number of list elements to be shown