improve resizing of homepage