use screen width to calculate preview size
compute preview width out side the loop
add scalingup=0
Merge pull request #35 from owncloud/use-document-width-in-slideshow

use screen width to calculate preview size