Got gallery working properly