add the width and height to carousel image