add offset to maincontent