arrows.slides undefined fix

I did not dig deep to find why but the arrows function is being called twice and second round has variable _ equal to #document (activeElement: body). Slides were undefined, so this fixes it for me.