Optimisation and hidden while resizing