Updated Defrag

Now defrag's canvas is resized according to number of elements