sich hinten anstellen - to join the end of the queue; to go to the end of the line 
sich hinten anstellend  - joining the end of the queue; going to the end of the line sich hinten angestellt  - joined the end of the queue; gone to the end of the line