Toggle gallery view when clicking the same entity twice.