Carousel code / Rotating

Hi,

I am trying to make a page part of a bottom panel as a carousel. I can do this with carousel with the usage of card. But then the problem arise how to make the picture full size of the page.
Must I code it with width and height? How do I know the width and height of the container? Hard coding of sizes isn't the way to go I think.

When I rotate the device nothing is happening. How must I ensure the rotating of the user interface as well?