added slider for n