fixed reizer function to accomodate smaller screens