fix bug in random gallery gt position