When we set a filter in slide mode, change the value of i