adding slider php code to template