Reusable slider component