scale down by applying css width and height