Fixing the automatic slide change