changes margins and paddings for children of main div