Control position of beam in coordination with xy slide