images will now always animate if they are not exactly the size of gallery