move up check for correct element of new gallery