use itemsCssClass if it is defined

Replaces #45