Automatic assembly of sliding devices for chairs