added switchcase for selected slider