changing slider into spinner