Correctly update files max-height dinamically
Improve DOM performance by using document fragment