Update homeslider.tpl

taken better code from 1.6