building responsive featured image function