Dynamically generated gallery. First attempt