Fix captions width inline-block
Added maxHeight option for adding max height required to container