limit length of gif animation on media browser