Keep selected positions and checked items in sync