homeslider not displaying picture with logic