get current slider function