fixed layer transition and positioning issues