Make gallery work