fix first slide; open popup; last slide; full gallery