[BUGFIX] Sets class for visible slide correctly on edge case