If else statement not mutually exclusive?
if and else if clauses are mutually exclusive. If the if is true then the else if cannot run.

Therefore it must be the case that the code you posted is being executed twice (at least) - once for SLOT_1 and once for SLOT_2.  Just so fast that you think it's happening at the same time.