gif margins for processning