Strain hardening and dislocation avalanches in micrometer-sized dimensions