Currently there is no way to buy tickets online in advance and avoid the queue. You need to go there physically and purchase tickets from the counter.