Added popup previews of cards in gallery with some UI.