add itemMargin to resource