Improve document preview