The dock moves whenever your cursor spends too much time hitting the bottom of the screen
EDIT: it's not the Dock I meant but the Cmd+Tab app switching UI, don't know what it's called... but I guess maybe which display they appear on are somehow related