From the main menu, select System and open the Character Configuration menu, then select the Hotbar Settings tab from the column on the left. Under Display, check the box "Hide unassigned slots."
* Actions can still be registered to hidden hotbar slots.
→Learn more about hotbars.