add code to ensure that palette follows attached sibling