added slider check