Optimizes how we get the width and height
Style changes