adding slider hook