Working with gallery