add animated gif auto play cookie to older.gallery.php