only show next / prev if defined
inlined some styles to allow media queries to be worked on them