Enhancement

Enhanced the code for resizing homepage