replace static gallery with gallery items