Improved width and height calculations for slides
Added options `slideMaxCount` and `slideMinWidth`, see #5