Revert "gallery and thumbnails"

This reverts commit 7bd0ea18cf4aba0f314fe283154aa8d284c5ce40.