I think the slots are locked to specific functions (I.e. 1 hammers 2 axes 3 pi ckaxes 4 unknown). However, to change the item selected for use simply press the corresponding number on the keyboard.
Edit-
Press 1 to make your hammer your active tool and press 2 to switch to your pick