Using outerWidth(true) and outerHeight(true) in height/width calculation of viewport, to support slides with margin. + Fixed Modal demo for jQuery 1.9+