Added autoAdvance feature.
Added resolution of width and height layout params (working progress)