Make simple gallery work