Austrian police say around 7,000 people gathered at the border after Slovenia transported many refugees by train.