some comments have been added
littleImageRatio property applied
expanding/collapsing methods have beed added