Gallery viewport tweaks