attempts to fix map and carousel image load issues with ready function