Update layerbounds of a layer based on the content it has which gets updated when the content is removed/updated/added. - Create a Util Function