Add size limit for slides, automatic quality setting