make document preview responsive