adjust elements' position in MainLayer