adjust box positions