Simplified the gallery module.