Little modification on gallery block