Apply pill item margin earlier