partition layout: fix rect bg classes