adjust element positions in MainLayer