directly pass the slot number to OpenItemWindow where possible

This prevents problems with "ItemButton" changing in between due to
window focus changes.