fixed slider by reloading it when displaying the index view