provides a reusable preview for the layout with padding