converted aspect ratio class to a function and mixin