Replace deprecated gallery