Added slider function to accordion