before adding slider