Maybe we should create some constants.

ACTIONBAR_SLOT1
ACTIONBAR_SLOT2
...
ACTIONBAR_SLOTN

Just a suggestion :)